package com.maniu.fluttermaniu;

import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.Nullable;

public class DavidView  extends ViewGroup {

    public DavidView(Context context) {
        super(context);
    }

    public DavidView(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }
//    要  1
//    不要 2

//    理念一样     摆放 测量 绘制


//    UI

    @Override
    protected void onLayout(boolean changed, int l, int t, int r, int b) {

    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        super.onMeasure(widthMeasureSpec, heightMeasureSpec);
    }

    @Override
    protected void onDraw(Canvas canvas) {
        super.onDraw(canvas);
    }
}
